#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <windows.h>

#define MAX_CHAR_COMMAND_LINE	4096
char *readline(const char *prompt){
	int count=0,chung=0,r=2;
	char *pt=malloc(MAX_CHAR_COMMAND_LINE);
	char *hold=pt;
	printf(prompt);
	while(chung!='\n'){
		if(count==MAX_CHAR_COMMAND_LINE) {
			r++;
			char *npt=malloc(MAX_CHAR_COMMAND_LINE*r);
			memcpy(npt,pt,count);
			pt=npt+count;
		}
		chung=getchar();
		count++;
		*pt=chung;
		pt++;
	}
	return hold;
}
int main(int argc,char **argv){
	CreateHardLinkA("c:\\mnt\\src","d:\\git");
}